php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#274605 - 06/02/04 09:44 PM Finished-[6.5] More Mod Powers
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Mod Name / Version: More Mod Powers <br /> <br />Description: With the advent of 6.5b1 they left out alot of the mod powers that a mod should or shouldn;t have. this is a totally personal choice. <br /> <br />This mod includes <br /> <br />* Adding the Control Panel Link for Moderators <br />* Full Member Management <br />* Forum Settings for the forums they are Moderators of <br />* Approve Posts <br />* Move Topics <br />* Prune Topics <br />* Lock Topic <br />* Unlock Topic <br />* Send PMs to Groups <br /> <br />All from the Moderators Control Panel <br /> <br />**NOT FOR THE INEXPERIENCED** <br /> <br /> <br />Working Under: UBB.Threads 6.5 <br /> <br />Mod Status: Finished <br /> <br />Any pre-requisites: <br /> <br />Author(s): scroungr <br /> <br />Date: 06/02/04 <br /> <br />Credits: JoshPet for the original PM to groups coding which I adapted to 6.5 <br /> <br />Files Altered: ubbt.inc.php, /admin/login.php, /templates/default/admin/login.tmpl, /admin/membermanage.php, /admin/membersearch.php, /templates/default/admin/showuser.tmpl, /admin/doapprovedn.php, /admin/doupdatebanlists.php, /admin/doapproveusers.php, /admin/memberaction.php, /admin/dochangeusergroups.php, /admin/doemailusers.php, /admin/doexportemails.php, /admin/dosendemails.php, /templates/default/admin/admin_modmenu.tmpl, /admin/forummanage.php, /templates/default/admin/forummanage.tmpl, /admin/viewboard.php, /templates/default/admin/viewboard.tmpl, /admin/doeditboard.php, /templates/default/admin/admin_modmenu.tmpl, /languages/english/admin/generic.php, /admin/approveposts.php, /admin/login.php, , /admin/doapproveposts.php, /admin/movethreads.php, /admin/selectmovethreads.php, /admin/selectmovethreads.php, /admin/savemovethreads.php, /admin/domovethreads.php, , /admin/prunethreads.php, /admin/saveprunethreads.php, /admin/selectprunethreads.php, /admin/doprunethreads.php, donotifymod.php, languages/english/donotifymod.php, online.php, /templates/default/admin/admin_adminmenu.tmpl <br /> <br />New Files: viewcthreads.php <br />doopenthreads.php <br />viewothreads.php <br />doclosedthreads.php <br />viewcthreads.php <br />viewothreads.php <br />viewcthreads.tmpl <br />viewothreads.tmpl <br />sendgrouppm.php <br />dosendgrouppm.php <br />sendgrouppm.tmpl <br />dosendgrouppm.tmpl <br />dosendgrouppm_confirm.tmpl <br /> <br /> <br /> <br />Database Altered: No <br /> <br />Info/Instructions: <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files. <br /> <br />updated for 6.5br4


Attachments
114638-[6.5]MoreModPowers.zip (107 downloads)



Edited by scroungr (07/03/04 08:55 PM)

Top
#274606 - 06/03/04 03:06 AM Re: Finished-[6.5] More Mod Powers [Re: 234234]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Nice... Hope to get this one added.<br />how about IP searching stuff for them? I know this is a major draw back for me moving to the new board right now. (besides that pesky greamlin hack)

Top
#274607 - 06/03/04 07:37 AM Re: Finished-[6.5] More Mod Powers [Re: Kelly]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
sure smiles go for it <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> you can see the instructions it would be easy enough so adpat one of the ip mods here to your install <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#274608 - 06/03/04 04:00 PM Re: Finished-[6.5] More Mod Powers [Re: 234234]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Cool I will have a peak at it perhaps this weekend... I hope

Top
#274609 - 07/14/04 08:32 PM Re: Finished-[6.5] More Mod Powers [Re: Kelly]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I've noticed and reported an error in the admin_modmenu.tmpl file.<br /><br />They have:<br />
Code:
&lt;div class="cpanel-menu-block"&gt;<br />&lt;div class="cpanel-menu-block-one"&gt;
<br />while it should be:<br />
Code:
&lt;div class="cpanel-menu-block"&gt;<br />&lt;span class="cpanel-menu-block-one"&gt;
<br />Corrections to your mod need to be made by adding:<br />
Code:
&lt;div class="cpanel-menu-block"&gt;<br />&lt;span class="cpanel-menu-block-one"&gt;
<br />at the beginning of every chunk added to this file followed by a:<br />
Code:
&lt;/div&gt;
<br />at the end of the chunk.

Top
#274610 - 08/09/04 04:02 PM Re: Finished-[6.5] More Mod Powers [Re: 234234]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
[]scroungr said:<br />**NOT FOR THE INEXPERIENCED**<br />[/]<br />Poppycock, a mere 38 files to modify is a trifle. A TRIFLE I SAY.<img src="http://www.ubbdev.com/forum/images/graemlins/evil.gif" alt="" /><img src="http://www.ubbdev.com/forum/images/graemlins/threaddevil.gif" alt="" /><img src="http://www.ubbdev.com/forum/images/graemlins/devil.gif" alt="" /><img src="http://www.ubbdev.com/forum/images/graemlins/jester.gif" alt="" /><br /><br />Nice mod. I'll have to give this baby a whirl.

Top
#274611 - 08/09/04 04:15 PM Re: Finished-[6.5] More Mod Powers [Re: BrokenToy]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
It's nothing, nothing I say! My Admin Logger mod required 46 files to be altered! =] I was very happy to see that included in the main distribution so I won't need to keep it updated. =]
_________________________
/Gardener | Complete list of my mods

Top
#274612 - 08/09/04 05:08 PM Re: Finished-[6.5] More Mod Powers [Re: BrokenToy]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This is a great mod. I installed this last night for someone. Crikey alot of files to mod. <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" /> But good instructions. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#274613 - 08/09/04 06:11 PM Re: Finished-[6.5] More Mod Powers [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
yeah hope it helps <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#274614 - 09/27/04 11:00 AM Re: Finished-[6.5] More Mod Powers [Re: 234234]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
I encounter a little problem and dont know this is a hack problem or a design problem from Infopop.<br /><br />After installingf this hack I log on as existing mod. Then select a random user (no mod, no admin) and try to put him in my moderated group to give him access. I klick an his name, say edit user and see the boxes for the groups where I be mod. I put the checkmark on one group and submit it.<br /><br />The Page returns, the checkmark is gone and the user still have no access to this group.<br /><br />Now I find a other way: Search user over the controlpanel, put the checkmark in the select box in front of hgis name and selct edit groups from the combo box down below. This bring up an other group access list and I can still give him the proper right and save it.<br /><br />Can you verify this ?
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#274615 - 09/27/04 11:45 AM Re: Finished-[6.5] More Mod Powers [Re: landyphil]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
in changeuser.php find this<br /><br />
Code:
<br />// New groups?<br />if (!isset($HTTP_POST_VARS['group'])) {<br />	$HTTP_POST_VARS['group'] = array();<br />}<br />for($i=0;$i&lt;$grouparr_size;$i++) {<br />	if ($HTTP_POST_VARS['group'][$i]) {<br />		$newgroups .= "{$HTTP_POST_VARS['group'][$i]}-";<br />	}<br />}<br /><br />change to<br /><br />// Get Total Groups<br />$query = "<br />	SELECT count(*)<br />	FROM {$config['tbprefix']}Groups<br />";<br />$sth = $dbh-&gt;do_query($query,__LINE__,__FILE__);<br />list($totalgroups) = $dbh-&gt;fetch_array($sth);<br /><br />// New groups?<br />if (!isset($HTTP_POST_VARS['group'])) {<br />	$HTTP_POST_VARS['group'] = array();<br />}<br />for($i=0;$i&lt;$totalgroups;$i++) {<br />	if ($HTTP_POST_VARS['group'][$i]) {<br />		$newgroups .= "{$HTTP_POST_VARS['group'][$i]}-";<br />	}<br />}<br />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#274616 - 09/27/04 11:58 AM Re: Finished-[6.5] More Mod Powers [Re: 234234]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
THANKS, works excellent. :top:
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#274617 - 09/27/04 02:30 PM Re: Finished-[6.5] More Mod Powers [Re: 234234]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
missing button label in forummanage.php (2nd try <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />) <br /> <br />##search for: <br />if ($user[U_Status] == "Administrator") <br /> { <br /> $bottomtabs = array( <br /> "{$config['phpurl']}/admin/createforum.php" <br /> ); <br /> $admin->createBottomTabs($bottomtabs,0); <br /> } <br /> <br /> <br />##replace with: <br />if ($user[U_Status] == "Administrator") <br /> { <br /> $bottomtabs = array( <br /> "{$ubbt_lang['ADD_NEW']}" => "{$config['phpurl']}/admin/createforum.php" <br /> ); <br /> $admin->createBottomTabs($bottomtabs,0); <br /> } <br /> <br />this should work.


Edited by Zarzal (09/28/04 04:55 AM)
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#274618 - 11/03/04 06:58 AM Re: Finished-[6.5] More Mod Powers [Re: landyphil]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I just wanted to note that this mod is not really in the "Finished" stage yet, since the changes I noted still need to be made to the instructions. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#274619 - 11/03/04 10:05 AM Re: Finished-[6.5] More Mod Powers [Re: eslmix]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmmm I don't even mention those lines in the admin_modmenu.tmpl.. is it a UBBT bug? cause I can't find it in instructions.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#274620 - 11/03/04 04:23 PM Re: Finished-[6.5] More Mod Powers [Re: 234234]
ChAoS_dup1 Offline
Code Monkey

Registered: 11/15/02
Posts: 576
Loc: Great Northwest
Holy cow thats quite the list of altered files <img src="http://www.ubbdev.com/forum/images/graemlins/shocked.gif" alt="" /><br /><br />Nice disclaimer btw
_________________________
ChAoS
Emerald Forest Gaming Servers
Official STFU Thread


Top
#274621 - 11/04/04 12:38 PM Re: Finished-[6.5] More Mod Powers [Re: 234234]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
It was a bug in one of the Beta releases of 6.5 that I pointed out to Infopop. As I stated above, they incorrectly used 2 div classes in a row when it should have been a div class followed by a span class. Since you wrote this mod using the bugged version of admin_modmenu.tmpl, you will need to adjust your instructions accordingly.<br /><br />Here is an example of a corrected step from your instructions:<br />[]<br />#####<br />### find the following in /templates/default/admin/admin_modmenu.tmpl<br />#####<br /><br /><div class="cpanel-menu-block"><br /><span class="cpanel-menu-block-one"><br /><img src="{$config['phpurl']}/images/cp/cp_left_nav_head_top.png" width="125" height="3" alt="" /><span class="cpanel-menu-block-two">{$ubbt_lang['MEMBERSHIP']}</span><img src="{$config['phpurl']}/images/cp/cp_left_nav_head_bottom.png" width="125" height="2" alt="" /></span><br /><ul><br /><li><a {$current_menu[$ubbt_lang['MEM_MAN']]}" href="{$config['phpurl']}/admin/membermanage.php">{$ubbt_lang['MEM_MAN']}</a></li><br /></ul><br /></div><br /><br />#<br /># Add below this<br />#<br /><br /><div class="cpanel-menu-block"><br /><span class="cpanel-menu-block-one"><br /><img src="{$config['phpurl']}/images/cp/cp_left_nav_head_top.png" width="125" height="3" alt="" /><span class="cpanel-menu-block-two">{$ubbt_lang['FORUMS']}</span><img src="{$config['phpurl']}/images/cp/cp_left_nav_head_bottom.png" width="125" height="2" alt="" /></span><br /><ul><br /><li><a {$current_menu[$ubbt_lang['FORUM_SET']]}" href="{$config['phpurl']}/admin/forummanage.php">{$ubbt_lang['FORUM_SET']}</a></li><br /></ul><br /></div><br />[/]<br /><br />The buggy beta had this block of code instead:<br />[]<br /><div class="cpanel-menu-block"><br /><div class="cpanel-menu-block-one"><br /><img src="{$config['phpurl']}/images/cp/cp_left_nav_head_top.png" width="125" height="3" alt="" /><span class="cpanel-menu-block-two">{$ubbt_lang['MEMBERSHIP']}</span><img src="{$config['phpurl']}/images/cp/cp_left_nav_head_bottom.png" width="125" height="2" alt="" /></span><br /><ul><br /><li><a {$current_menu[$ubbt_lang['MEM_MAN']]}" href="{$config['phpurl']}/admin/membermanage.php">{$ubbt_lang['MEM_MAN']}</a></li><br /></ul><br />[/]

Top
#274622 - 11/04/04 01:26 PM Re: Finished-[6.5] More Mod Powers [Re: eslmix]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
OK I see what you saying but I can't find that part of the instructions where I call admin_modmenu.tmpl with those strings.. I do see the part where I call it just not as it is above?<br /><br />now I do see where I call that type of line in admin_adminmenu.tmpl
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#274623 - 12/27/04 12:58 PM Re: Finished-[6.5] More Mod Powers [Re: 234234]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
this hack must be a little bit improved for 6.5.1<br />I see some problems with admin/movethreads.php and admin/prunethreads.php. I dont know how to adapt the query in the section <br />// Get the list of forums<br /><br />The beta code:<br />// Get the list of forums<br />$query = "<br /> SELECT t1.Bo_Title,t1.Bo_Number,t1.Bo_Cat,t1.Bo_Sorter,t1.Bo_CatName,t1.Bo_Keyword<br /> FROM {$config['tbprefix']}Boards AS t1,<br /> {$config['tbprefix']}Category AS t2<br /> WHERE t1.Bo_Cat = t2.Cat_Entry<br /> ORDER BY t2.Cat_Number,t1.Bo_Sorter<br />";<br /><br />your code from this hack:<br />// Get the list of forums<br />if ( $user['U_Status'] == "Administrator" ) {<br />$query = "<br /> SELECT Bo_Title,Bo_Number,Bo_Cat,Bo_Sorter,Bo_CatName,Bo_Keyword<br /> FROM {$config['tbprefix']}Boards<br /> ORDER BY Bo_Cat,Bo_Sorter<br /> ";<br />}<br />else {<br /> $query = "<br /> SELECT Bo_Title,Bo_Number,Bo_Cat,Bo_Sorter,Bo_CatName,Bo_Keyword<br /> FROM {$config['tbprefix']}Boards AS t1,<br /> {$config['tbprefix']}Moderators AS t2<br /> WHERE t2.Mod_Uid = '$user[U_Number]'<br /> AND t2.Mod_Board = t1.Bo_Keyword<br /> ORDER BY Bo_Cat,Bo_Sorter<br />";<br />}
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#274624 - 12/28/04 02:34 PM Re: Finished-[6.5] More Mod Powers [Re: 234234]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
There is a bug in admin/sendgrouppm.php<br /><br />after you fill out the form, select preview and press the button you see the preview for 3 seconds. The pm notifyer email is generated and then after 3 seconds you will return to the input form witch is empty again. The pm is not gerated.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
Page 1 of 3 1 2 3 >



Moderator:  Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks